package com.ty.day3;

import java.util.Scanner;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : txy
 * @Create 2023/10/30 11:50
 */
public class Four {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入一个数：");
        int x = sc.nextInt(), a = 2;
        System.out.print(x + "=");
        while (x > 1) {
            if (x % a == 0) {
                System.out.print(a);
                x /= a;
                a--;
                if (x != 1) {
                    System.out.print("*");
                }
            }
            a++;

        }
    }

    public static int Prime(int a) {
        int flag = 1;
        for (int i = 2; i < a; i++) {
            if (a % i == 0) {
                flag = 0;
                break;
            }
        }
        return flag;
    }
}
